<?php
require("includes/basic.php");
$cli=$_POST['clid'];
$contact=$_POST['contact-name'];
$creator=$distusertypeid;
$phone1=$_POST['phone1'];
$phone2=$_POST['phone2'];
$email1=$_POST['email1'];
$email2=$_POST['email2'];
$address=addslashes($_POST['add']);
$sql=mysql_query("insert into client_contact(`client_id`,`contact_name`,`contact_phone_1`,`contact_phone_2`,`contact_email_1`,`contact_email_2`,`contact_address`,`contact_created_on`,`contact_created_by`) values ('$cli','$contact','$phone1','$phone2','$email1','$email2','$address',sysdate(),'$creator')");
if($sql)
{
 header("location:view-client-contacts.php?clidd=$cli");
}
else {echo "no";}
?>